from paUtils import *

a = array(randArray(10000, 0, 256))
b = array(randArray(10000, 0, 256))
c = array(randArray(10000, 0, 256))
ac = a + 0.3*c
bc = b + 0.3*c
x = crossCorr(ac, bc, range(-14,18))

from pylab import plot, show, xlim, ylim
import phringes
phringes.import_for_server()

p = phringes.PhringesData({0:list(x)})

wrapped = p.wrap_phase(list(p.phases[0]))
patan = p.get_phase_atan(list(x))

plot(p.phases[0], 'o')
plot(wrapped, '-')
plot(patan,'o')
show()
